// 首页相关类型定义

/**
 * API响应结果类型
 */
export interface Result<T> {
  success: boolean;
  code: number;
  message: string;
  data: T;
}

/**
 * 分页结果类型
 */
export interface PageResult<T> {
  records: T[];
  total: number;
  size: number;
  current: number;
  pages: number;
}

/**
 * 文章数据类型
 */
export interface Post {
  id: number;
  title: string;
  content: string;
  createBy: number;
  createTime: string;
  updateTime: string;
  likeCount: number;
  favourCount: number;
  viewCount: number;
}

/**
 * 标签数据类型
 */
export interface Tag {
  id: number;
  tagName: string;
  createTime: string;
  updateTime: string;
}

/**
 * 分类数据类型
 */
export interface Category {
  id: number;
  categoryName: string;
  createTime: string;
  updateTime: string;
}